/**
 * 门店 api 封装
 *
 * @Author:    -
 * @Date:      2025-03-21 08:31:36
 * @Copyright  -
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const shopApi = {

  /**
   * 分页查询  @author  -
   */
  queryPage : (param) => {
    return postRequest('/shop/queryPage', param);
  },
  /**
   * 下拉列表查询  @author  -
   */
  selectList : (param) => {
    return postRequest('/shop/selectList', param);
  },
   /**
   * 删除  @author  -
   */
   info: (id) => {
    return getRequest(`/shop/info/${id}`);
},
  /**
   * 增加  @author  -
   */
  add: (param) => {
      return postRequest('/shop/add', param);
  },

  /**
   * 修改  @author  -
   */
  update: (param) => {
      return postRequest('/shop/update', param);
  },


  /**
   * 删除  @author  -
   */
  delete: (id) => {
      return getRequest(`/shop/delete/${id}`);
  },

  /**
   * 批量删除  @author  -
   */
  batchDelete: (idList) => {
      return postRequest('/shop/batchDelete', idList);
  },
  /**
     * 获取最新的复制记录  @author  -
     */
  getOneCopyHis : (param) => {
    return postRequest('/shop/getOneCopyHis', param);
  },
  submitTask: (param) => {
    return postRequest('/shopCopyHis/submitTask', param);
  },
};
